<template>
    <Painter></Painter>
    <button @click="exit" style="margin-top: 16px">退出</button>
</template>





<script setup lang="ts">
import { alert } from './components/Alert'
import Painter from './pages/Painter/index.vue'

async function exit() {
    const ok = await alert({
        info:'确定要退出吗?'
    })
    if (ok) {
        window.electronApi.exit()
    }
}
</script>